#ifndef CMDUTILS_H
#define CMDUTILS_H

typedef void (*OptionHandler)(const char *arg);

typedef struct {
    const char *name;
    int has_arg;
    OptionHandler handler;
} Option;

int parse_options(Option *options, int argc, char *argv[]) ;

#endif